<?php

namespace App\Http\Repository;

use App\Http\Controllers\common\BaseController;
use App\Models\Collage;
use App\Models\House;
use App\Models\Order;
use Illuminate\Http\Request;

class OrderRepository extends BaseController
{
    /**
     * @return false|string
     * Su ang
     * 订单
     */
    public static function order()
    {

    }


    public static function orderQuery($id)
    {
        $wheres = ['user_id'=>$id,'status'=>1];

        $data = Order::where($wheres)->orderBy('pay_time','desc')->get()->toarray();
        return self::retJson('200','查询订单成功',$data);
    }
}
